package com.snake.repositories;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.snake.mapper.ShareAppMapper;
import com.snake.models.ActivityShareApp;


@Service
public class ShareAppServiceImpl implements ShareAppService {
	@Autowired
	private ShareAppMapper shareAppMapper;
	@Override
	public ActivityShareApp add(ActivityShareApp t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityShareApp delete(ActivityShareApp t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityShareApp update(ActivityShareApp t) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ActivityShareApp getById(int id) {
		// TODO Auto-generated method stub
		Map<String, Object> params=new HashMap<String, Object>();
		params.put("shareAppId", id);
		ActivityShareApp byId = shareAppMapper.getById(params);
		return byId;
	}

	@Override
	public List<ActivityShareApp> getByList(Map<String, Object> params) {
		// TODO Auto-generated method stub
		List<ActivityShareApp> byList = shareAppMapper.getByList(params);
		return byList;
	}
	
}
